﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SendTestNotification.aspx.cs" Inherits="SendTestNotification" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title id="title" runat="server"></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    <h2>Send Test Notification</h2>
        <a id="c_linkUp" runat="server">Subscription Details</a>
    <table>
    <tr>
    <td>Subscription Id</td>
    <td runat="server" id="c_subscriptionIdText" />
    </tr>
    <tr>
    <td>Type</td>
    <td runat="server" id="c_subscriptionType" />
    </tr>    
    <tr>
    <td>Notification</td>
    <td runat="server" id="c_notification" />
    </tr>    
    <tr>
    <td>Notification Key</td>
    <td runat="server" id="c_notificationKey" />
    </tr>    
    <tr>
    <td>Notification Key Version</td>
    <td runat="server" id="c_notificationKeyVersion" />
    </tr>    

    <tr><td>&nbsp;</td></tr>
    </table> 

   <h3>Notification Destination</h3>
    <asp:RadioButtonList ID="c_radioButtonNotificationUrl" runat="server">
        <asp:ListItem ID="c_buttonUseSubscriptionUrl"  runat="server">Use URL defined in subscription
        </asp:ListItem>
        <asp:ListItem ID="c_buttonUseNotificationHandlerPage" runat="server">Use NotificationHandlerPage.ashx in this project
        </asp:ListItem>
        <asp:ListItem ID="c_buttonUseSpecifiedUrl" runat="server">Use specified URL
        </asp:ListItem>
    </asp:RadioButtonList>
    <table>
    <tr>
        <td width="15"></td>
        <td>
            <asp:TextBox ID="c_textSpecifiedUrl" runat="server" />
        </td>
    </tr>
    </table>

    <h3>Authentication</h3>
    <asp:RadioButtonList ID="c_radioButtonAuthenticationData" runat="server">
        <asp:ListItem ID="c_buttonAuthenticationNormal" runat="server">Normal
        </asp:ListItem>
        <asp:ListItem ID="c_buttonAuthenticationBadHmac" runat="server">Send bad HMAC
        </asp:ListItem>
        <asp:ListItem ID="c_buttonAuthenticationBadVersion" runat="server">Send bad key version
        </asp:ListItem>
    </asp:RadioButtonList>


    <h3>Instances</h3>
    <asp:RadioButtonList ID="c_radioButtonNotificationData" runat="server">
        <asp:ListItem ID="c_buttonFakeInstanceIds" runat="server">Generate fake instance Ids
        </asp:ListItem>
        <asp:ListItem ID="c_buttonSendEmptyInstanceList"  runat="server">Send empty instance list
        </asp:ListItem>
        <asp:ListItem ID="c_buttonFetchFromRecord" runat="server">Simulate using items in record
        </asp:ListItem>
    </asp:RadioButtonList>
    <table>
    <tr>
        <td width="15"></td>
        <td>

        <table ID="c_tableTypes" runat="server" cellpadding="2" cellspacing="2" border="1" />

        </td>
    </tr>
    </table>



        <br />
        <asp:Button ID="c_ButtonShowMessage" runat="server" Text="View Test Notification" OnClick="viewTestMessageClick" />

        <div ID="c_divTestMessage" runat="server" visible="false" />
        <br /> <br />

        <asp:Button ID="c_ButtonTest" runat="server" Text="Send Test Notification" OnClick="testClick" />

    </div>

<h3>Test Result</h3>

<asp:Literal ID="c_textResult" runat="server" />

<br />
<a href="ViewLog.aspx" target="_blank">View Log Results</a>

    </form>


</body>
</html>

